/**
 * BaseAreaRecord
 * Copyright © 2015 - 2017
 * All rights reserved.
 * -----------------------------------
 * 2018-05-15  Created
 */
package com.lzy.cloud.base.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * Create Date Time: 2018-05-15
 * @see 'http://www.lzyhll.com'
 */
@Data
public class BaseAreaRecordDto implements Serializable {
    private static final long serialVersionUID = 5582776993217718381L;
    /**
     * 地域记录主键ID
     */
    private Long id;

    /**
     * 地区id
     */
    private Long areaId;

    /**
     * 城市代码
     */
    private Integer cityCode;

    /**
     * 城市名称
     */
    private String name;

    /**
     * 变更年份
     */
    private Integer areaYear;

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

}